#CC=gcc
CC=/home/linux/ARM/arm-linux/gcc-4.6.4/bin/arm-linux-gcc
AFLAGS=-Wall -c -g
LDFLAGS= -L ./lib -lsqlite3
#LDFLAGS= -lpthread
OBJS=cgic.o data_global.o sql.o sqlite_cgi.o
#camera_function.o

sql1.cgi:$(OBJS)
	$(CC) -o $@ $^ $(LDFLAGS)
	mv *.cgi ./out/
$(OBJS):%.o:%.c
	$(CC) $(AFLAGS) $< -o $@

.PHONY:clean
clean:
	rm *.o ./out/*.cgi 

